<?php
/**
 * *
 *  * ============================================================================
 *  * Created by PhpStorm.
 *  * User: Ice
 *  * 邮箱: ice@sbing.vip
 *  * 网址: https://sbing.vip
 *  * Date: 2019/9/20 下午5:19
 *  * ============================================================================.
 */

namespace app\common\service\runningfast;

use think\Service;
use app\common\library\Auth;

/**
 * 斗地主
 */
class Index extends Service
{
    

    public function index($data)
    {
        //data = {game: "runningfast", action: "connect", data: {user: "play1"}}
        $action = $data['action']??"";
        
        $result = swoole_error("系统错误！");
        switch($action){
            case "connect":
                $this->connect($data['data']);
                break;
            default:
                break;
        }
    }

    //系统连接（登陆）
    private function connect(){

    }
}
